public class Test7 {
public static void walk(IRunning running){
    System.out.println("我带着伙伴去散步");
    running.run();
}

    public static void main(String[] args) {
Cat1 cat1 = new Cat1("小猫");
walk(cat1);
    }
}
